package com.springBoot.springBootSysCore.modules.vo;



public class TreeVO {
	/**
	 * 主键ID
	 */
	private String id;
	 /**
     * 序号
     */
    private Integer sort;
	/**
	 * 父级ID
	 */
	private String upId;
	/**
	 * 成员名称
	 */
	private String moduleName; 
	/**
	 * 是否打开
	 */
	private boolean open;

//	private CouType entity;


	public TreeVO() {
		super();
	}
	

	public TreeVO(String id, Integer sort, String upId, String typeName,
                  boolean open) {
		super();
		this.id = id;
		this.sort = sort;
		this.upId = upId;
		this.moduleName = typeName;
		this.open = open;
	}
//	public TreeVO(CouType entity,boolean open) {
//		super();
//		this.id = entity.getId();
//		this.sort = entity.getSort();
//		this.upId = entity.getParentCouType()!=null?entity.getParentCouType().getId():"";
//		this.moduleName = entity.getName();
//		this.open = open;
//		this.entity = entity;
//	}

	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public Integer getSort() {
		return sort;
	}


	public void setSort(Integer sort) {
		this.sort = sort;
	}


	public String getUpId() {
		return upId;
	}


	public void setUpId(String upId) {
		this.upId = upId;
	}


	public String getModuleName() {
		return moduleName;
	}


	public void setModuleName(String typeName) {
		this.moduleName = typeName;
	}


	public boolean isOpen() {
		return open;
	}


	public void setOpen(boolean open) {
		this.open = open;
	}

//	public CouType getEntity() {
//		return entity;
//	}
//
//	public void setEntity(CouType entity) {
//		this.entity = entity;
//	}
}
